<template>
	<div class="setting-label-wrapper">
		<el-form-item :label="lebel">
			<span slot="label" class="text-wraper">{{ label }}</span>
			<p class="setting" v-if="isSetting">
				<el-button @click="settingClick">设置</el-button>
			</p>
		</el-form-item>
	</div>
</template>

<script>
export default {
	props: {
		label: {
			type: String,
			required: true,
			default: () => '肯定回答'
		},
		isSetting: {
			type: Boolean,
			default: false
		},
		prop: {
			type: String,
			default: () => ''
		}
	},

	methods: {
		settingClick() {
			this.$emit('settingClick');
		}
	}
};
</script>

<style></style>
